package com.edu.demo.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * @Create 2020-04-08 16:01
 */

@Getter
@Setter
@ApiModel(value = "Quartz的启动或停止", description = "自动停止")
public class QuartszSosVO {

    @ApiModelProperty(value = "cron表达式",required = true)
    @NotNull(message = "cron表达式不能为空")
    private String cron;

    @ApiModelProperty(value = "任务名称",required = true)
    @NotNull(message = "任务名称不能为空")
    private String jobName;

    @ApiModelProperty(value = "任务组",required = true)
    @NotNull(message = "任务名称不能为空")
    private String groupName;

    @ApiModelProperty(value = "调度器",required = true)
    @NotNull(message = "调度器不能为空")
    private String scheduleName;

    @ApiModelProperty(value = "调度器组",required = true)
    @NotNull(message = "调度器组不能为空")
    private String scheduleGroup;

    @ApiModelProperty(value = "job反射",required = true)
    @NotNull(message = "job反射不能为空")
    private String jobClass;

    @ApiModelProperty(value = "开始或停止",example = "true")
    @NotNull(message = "开始或停止不能为空")
    private boolean startOrStop;
}
